import request from "../request.js"

// 获取轮播图
function requestBannerAds(data){
	return request({
		url:"/lejuClient/home/bannerAds",
		data
	})
}
// 获取分类列表
function requestCategorys(id,data){
	return request({
		url:`/lejuClient/home/categorys/${id}`,
		data
	})
}
// 获取限时热卖列表
function requestRecommendList(data){
	return request({
		url:`/lejuClient/home/recommendList`,
		data
	})
}
// 获取最热商品
function requestHotList(data){
	return request({
		url:`/lejuClient/home/hotList`,
		data
	})
}
// 获取新品推荐
function requestNewList(data){
	return request({
		url:`/lejuClient/home/lejuLatestProducts`,
		data
	})
}

// 获取猜你喜欢
function requestLikeList(data){
	return request({
		url:`/lejuClient/home/saleMostProducts`,
		data
	})
}

export {
	requestBannerAds,
	requestCategorys,
	requestRecommendList,
	requestHotList,
	requestNewList,
	requestLikeList
}